<template>
  <div id="app">
    <router-view />
  </div>
</template>

<script>
export default {
  name: 'App',
  mounted() {
    // this.bodyScale()
    // let self = this
    // window.onload = window.onresize = function () {
    //   self.bodyScale();
    // }

    // window.localStorage.setItem('LoginInfo', JSON.stringify({
    //   usercode: '22f949f7-3b4d-4a64-a590-5286078de867',
    //   compid: '1',
    //   username: '陈雄',
    // }))
    // window.localStorage.setItem('token','eyJhbGciOiJIUzI1NiJ9.eyJpZCI6IjEzMTU4MDU1MDMwIiwidHlwZSI6IndlYiIsImVudiI6Im1kIiwiaWF0IjoxNzQxNzY1NTI1fQ.0NNSG1ntyeemVNJU82RIy8TWvk2T53tki07J9WudYwU')
  },
  components: {},
  methods: {
    bodyScale() {
      var devicewidth = document.documentElement.clientWidth
      var scale = devicewidth / 1920 // 分母——设计稿的尺寸
      document.body.style.zoom = scale
    },
  },
}
</script>

<style>
#app {
  font-family: PingFang SC, Microsoft YaHei, Helvetica Neue, Helvetica, Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 14px;
  color: #000;
  overflow: auto;
  width: 100%;
  height: 100%;
  background-color: #f9fcff;
  box-sizing: border-box;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 5px;
  border: 1px solid transparent;
  height: 140px;
  background-clip: content-box;
}

.el-message {
  min-width: 150px !important;
}
</style>
